//
//  FYRequestBaseParameter.m
//  FYNetworking
//
//  Created by Felix Yin on 2017/5/8.
//  Copyright © 2017年 Felix Yin. All rights reserved.
//

#import "FYRequestBaseParameter.h"
#import <UIKit/UIKit.h>

@interface FYRequestBaseParameter ()

/**
 *  设备号
 */
@property (nonatomic, copy) NSString *deviceID;
/**
 *  App版本号
 */
@property (nonatomic, copy) NSString *appVersion;
/**
 *  系统版本号
 */
@property (nonatomic, copy) NSString *systemVersion;

@end

@implementation FYRequestBaseParameter

+ (instancetype)shareInstance{
    static dispatch_once_t onceToken;
    static FYRequestBaseParameter *parameter = nil;
    dispatch_once(&onceToken, ^{
        parameter = [[FYRequestBaseParameter alloc] init];
        parameter.deviceID = [UIDevice currentDevice].identifierForVendor.UUIDString;
        parameter.systemVersion = [UIDevice currentDevice].systemVersion;
        parameter.appVersion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
    });
    return parameter;
}

- (NSDictionary *)deviceInfo{
    return @{@"channelId":@"4715681665974388314",@"device_token":@"3B040DA3-2E3F-4618-9BE4-8C5F39E8256D",@"system":@"2",@"token":@"23565c",@"uid":@"899"};
//    return @{@"device_id":_deviceID,@"system_version":_systemVersion,@"app_version":_appVersion};
}

@end
